Implantable loop-recorder